package com.zjgk.hotel.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zjgk.hotel.dao.pojo.Room;
import com.zjgk.hotel.vo.RoomContent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface RoomMapper extends BaseMapper<Room> {
    @Select("select * form room,room_type where(room.id = #{id} and room.type_id = room_type.id) ")
    RoomContent RoomContent(Integer id);
}
